Electron spin relaxation of single phosphorus donors in metal-oxide-semiconductor nanoscale devices