Coupled integral equation approach for solving melting or solidification