Galaxy mergers and active galactic nuclei