Search for dark matter in events with heavy quarks and missing transverse momentum in collisions with the ATLAS detector