An automated approach and virtual environment for generating maintenance instructions