Smartphone app can help you avoid unplanned pregnancy