Thermal characteristics of paraffin in a spherical capsule during freezing and melting processes