João Pedro de Magalhães, PhD