Formation of planetary systems: A simple synthetical approach