Dynamic Resource Redistribution and Demand Estimation: An Application to Bike Sharing Systems