Effects of metallicity, star-formation conditions, and evolution in B and Be stars I. Large Magellanic Cloud, field of NGC 2004 (cid:1)