Evaluation and reformulation of the maximum peak height algorithm (MPH) and application in a hypertrophic lagoon