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