Exchange interaction and the g-factor for 2D-electrons in heterostructures GaAs-Ga1−xAlxAs