An Efficient Method for Calculating the Absorption Enhancement in Solar Cells with Integrated Plasmonic and Photonic Nanoparticles