The effect of prey availability on offspring survival depends on maternal food resources