Combining rapid prototyping techniques in mechanical engineering and electronics for realization of a variable capacitor