An alternating direction algorithm for matrix completion with nonnegative factors