A smartphone-based test for male fertility