Synthesis of tricyclic condensed rings incorporating the pyrazole or isoxazole moieties bonded to a 4-piperidinyl substituent