Minimizing nitrate leaching while maintaining crop yields: insights by simulating net N mineralization