Investigation of states in 40Ca by the 39K(d, n) reaction