Beauty brands are hiring — or buying — technology companies that let customers virtually try on makeup, hair and skin care products.

By