Motown Revival: All-Star Lopez helps Nets pull out win in Detroit