SMS: Multistate systems reliability theory with applications