End-to-End Optimal Detector Design with Mutual Information Surrogates