Atomic-level simulation of ferroelectricity in oxide materials