Modeling the optical properties of twisted bilayer photonic crystals