Paus Nicolaas III (Johannes Orsini), paus 1277-1280