An in silico bioreactor for simulating laboratory experiments in tissue engineering