One-dimensional consolidation under general time-dependent loading