Officer accused of asking woman for sexual favors avoids jail time