Circuit arrangements for detecting position