Flexible and Efficient Surrogate Gradient Modeling with Forward Gradient Injection