Inference problems for the telegraph process observed at discrete times