Improving In-context Learning of Multilingual Generative Language Models with Cross-lingual Alignment