Photochemical control of pyramidal inversion and photoactivation of antimicrobial agents