German state admits spying on citizens with trojan software