Micromagnetics of exchange spring media: Optimization and limits