Light manipulation in multilayered photonic structures