Work-modulated queues with applications to storage processes