Weil Representation and Metaplectic Groups over an Integral Domain