Sex allocation, juvenile mortality and the costs imposed by offspring on parents and siblings