Software solutions for custom-built X-ray diffractometers and non-standard experimental setups