The rocks which are formed due to cooling of magma at a relatively shallow depth from the earth’s surface are called