A method of analyzing density-dependent vital rates with an application to the Gainj of Papua New Guinea