Modelling the spare parts stock levels and its applications in industrial systems