Implementation and validation of a multi-purpose virtual spectrophotometer for large systems in complex environments