Period-Magnitude relation of Mira-like variables in the Large Magellanic Cloud as a tool to understand circumstellar extinction