Cosmic evolution of the spatially resolved star formation rate and stellar mass of the CALIFA survey