iOS: calculate DPI from scale factor if unknown