The optimal structure of the MRPC detector for 0.511 MeV gamma based on Monte Carlo simulation