Earthquake rattles KP, Punjab cities