Magnitude 5.4 quake shakes up Chitral, Swat