Topological field theories, Nicolai maps and BRST quantization