Oxygen K near-edge X-ray absorption spectroscopy of La2−xMxCuO4 (M = Ca, Sr and Ba) x-Dependence of hole state density