Police educate public about railroad crossing safety by giving out tickets