Connecting ansatz expressibility to gradient magnitudes and barren plateaus