Transformation media with variable optical axes