Transient response of a packed bed for thermal energy storage