A finite difference method for studying thermal deformation in a three-dimensional microsphere exposed to ultrashort-pulsed lasers