Electronic and magnetic properties of bulk and (100) and (111) surfaces of MnPt3: An ab initio study