RiTMO: A Method for Runtime Testability Measurement and Optimisation