Constraints on mediator-based dark matter and scalar dark energy models using sqrt(s) = 13 TeV pp collision data collected by the ATLAS detector