Automatic maceral analysis of low-rank coal (brown coal)