GenSDF: Two-Stage Learning of Generalizable Signed Distance Functions