High-precision tomography of ion qubits based on registration of fluorescent photons