Mathematical model for release kinetics of pulsatile drug delivery