Magnetars: Structure and evolution from p-star models