Quantitative analysis of zero field cooling and field cooling curves to determine the critical current density and lower critical field