49ers win NFC West with 27-13 victory over Arizona