Generating exact solutions to Einstein's equation using linearized approximations