Analysis of spatially explicit capture-recapture (SECR) data in AD Model Builder and R