Analytical solutions of heat spreading resistance from a heat source on a finite substrate with isothermal or convective surfaces