Inhomogeneous waves and energy localization in dielectric superlattices