Bac Ninh ranks second in FDI attraction in 2017