Achieving asymmetry and trapping in diffusion with spatiotemporal metamaterials