Modelling materials for photonic applications