PSX ends lower amid profit taking