Structural ecodynamic model for lakes and reservoirs