A method for measuring the specific heat capacity of layered structures using the Boubaker polynomials expansion scheme