Katarina Johnson-Thompson led home a British one-two in the pentathlon at the European Indoor Championships ahead of Niamh Emerson.