An SPH framework for fluid–solid and contact interaction problems including thermo-mechanical coupling and reversible phase transitions