Theoretical and experimental study of plasmonic effects in heavily doped gallium arsenide and indium phosphide