Maximum likelihood estimation in generalized broken‐line regression