Integrated all-optical phase-sensitive amplifier using the thermal nonlinearity