Losing a grandmother can have long-lasting mental health effects for kids and adolescents, a new study finds