Study of the spin and parity of the Higgs boson in diboson decays with the ATLAS detector