A population of freshwater cichlid fish lives in a large lake. A river from the lake was diverted by a landslide, creating a new isolated lake. Meanwhile, within the original lake, some cichlids began breeding in the rocky shoreline while others bred in the open water, leading to reproductive isolation.
Describe how allopatric and sympatric speciation can lead to the formation of new species, using examples based on this scenario.