On Maslov’s quantization condition