Optimal linear fusion for distributed detection via semidefinite programming