A theoretical model for the calculation of the drug distribution profile in matrices of different shape to achieve the desired drug release kinetics