Gen-A: Generalizing Ambisonics Neural Encoding to Unseen Microphone Arrays