Reliability modeling and economic analysis of computer systems with hardware and software failures