Optimal estimation of entanglement and discord in two-qubit states