Electronic structure and electric-field-gradients distribution in Y3Al5O12: An ab initio study