Green's function for the deflection of non-prismatic simply supported beams by an analytical approach