Effects of flexibility and security on the decision to work for ride-sharing services