Stochastic juvenile–adult models with application to a green tree frog population