Astronomers shed new light on birth of stars and galaxies