Dynamic modelling of a steam generator using least squares analysis