Theoretical studies of the spin Hamiltonian parameters and the local structure for the orthorhombic V4+ in CaYAlO4