Egypt court sentences Mubarak to three years for graft