An investigation of structures responsible for gender bias in BERT and DistilBERT