The steps from sexual reproduction to apomixis