Study of electronic and magnetic properties in 4f electron based cubic EuAlO3: a first-principles calculation