Application of the multilevel fast multipole method to the analysis of conformed multilayered periodic structures