Trend estimation in populations with imperfect detection