Modelling and analysis of discrete and continuous-time reliability-queueing-inventory systems