Manipulating photoluminescent properties via spatial control of optically active media within polymer matrices and templates