Security analysis on some experimental quantum key distribution systems with imperfect optical and electrical devices