Some matrix equations involving the weighted geometric mean