A mechanistic model for multi-scale sorption dynamics in shale