Composition of the lunar magma ocean constrained by the conditions for the crust formation