Convicted Baltimore gang member sentenced to 40 years in federal prison