Work-Modulated Queues with Applications to Storage Processes