Maintenance optimization and spare parts management in data-integrated environments