Search for dark matter in events with a hadronically decaying W or Z boson and missing transverse momentum in pp collisions at vs = 8 TeV with the ATLAS detector