Analytical considerations of thermal storage and interface evolution of a PCM with/without porous media